<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    //  检测数据类型的方式2  instanceof  
    // 检测引用类型
    //缺点：检测 数据属于哪个构造
    var arr = [1, 2, 3]
    console.log(arr instanceof Array)
    var obj = {
      name: 11,
      age: 22
    }
    console.log(obj instanceof Object)
    var car = function () { }
    console.log(car instanceof Function)
  </script>
</body>

</html>